package org.eden.heartbeat.api.utils;

/**
 * Utility methods for handling string.
 *
 * @author trsimoes
 * @version $Revision:$
 */
public class HeartbeatStringUtils {

    /**
     * Validates if the string is null or empty.
     *
     * @param string the string to be validated
     * @return {@code true} if string is null or empty, otherwise {@code false}.
     */
    public static boolean isNullOrEmpty(String string) {
        return string == null || string.trim().length() == 0;
    }
}
